#! /bin/bash

# Last modification: 2018-07-18 18:26:11
# Test script for the [shellExec] command
# This script takes one argument which is a number of iterations and sleeps
# for one second between iterations.

if [ $# != 1 ] ; then
	>&2 echo "Wrong number of arguments."
	>&2 echo "Usage: $(basename $0) num" 
	exit 1
fi

# Enumerate the arguments
iter=$1

for (( i = 1 ; i <= $iter ; i++ )) ; do
	echo "iteration ${i}/$iter"
	sleep 1
done

exit 0

